package com.linkhub.oms.admin.modules.logistic.domain.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description LogisticQueryParam.java
 * @createTime 2024/04/29 22:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LogisticQueryParam", description = "LogisticQueryParam")
public class LogisticQueryParam implements Serializable {

        @ApiModelProperty(value = "启用状态：null-全部；0-停用中；1-启用中")
        @Range(min = 0, max = 1, message = "{validation.logistic.authorization.range}")
        private Integer channelState;

        @ApiModelProperty(value = "物流名称或物流渠道名称")
        @Length(min = 0, max = 100, message = "{validation.logisticName.length}")
        private String keyWord;
}
